package com.cloud.shopping.search.model;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author John.zhang
 * @version Id: SeckillGoodsEs, v 1.0 2021/1/8 11:26 ZhiYong Exp $
 */

@Data
@Document(indexName = "shopping_seckill")
public class SeckillGoodsEs implements Serializable {
    @Id
    private String id;
    private String supId;
    private String skuId;
    @Field(type= FieldType.Text,searchAnalyzer = "ik_smart",analyzer = "ik_smart")
    private String name;
    private String images;
    private Integer price;
    private Integer seckillPrice;
    private Integer num;
    private Integer storeCount;
    @Field(type=FieldType.Keyword)
    private String activityId;
}
